package cn.com.infostrategy.ui.mdata.formatcomp;

import java.util.Stack;

import org.nfunk.jep.ParseException;
import org.nfunk.jep.function.PostfixMathCommand;

import cn.com.infostrategy.ui.mdata.BillFormatPanel;
import cn.com.infostrategy.ui.mdata.BillListPanel;

public class GetBillListPanel extends PostfixMathCommand {

	private BillFormatPanel formatpanel = null; //

	public GetBillListPanel(BillFormatPanel _formatpanel) {
		this.formatpanel = _formatpanel; //
		numberOfParameters = 1;
	}

	public void run(Stack inStack) throws ParseException {
		Object param_1 = inStack.pop();
		String templetCode = (String) param_1; //
		BillListPanel listPanel = new BillListPanel(templetCode); //
		String _returnkey = "billlist_" + formatpanel.getCompentSeq(); //
		formatpanel.getPanelMap().put(_returnkey, listPanel); //
		listPanel.setLoaderBillFormatPanel(formatpanel); //
		inStack.push(_returnkey); //
		//System.out.println(_returnkey + "=getCard(\"" + templetCode + "\")"); //
	}
}
